"""
异常处理的基本语法结构
练习：字符串转整数异常
"""
try:
    print("step1")
    a = 3 / 0  # ZeroDivisionError
    print("step2")
except BaseException as e: # BaseException as e可以省略
    print("step3")
    print("0不能做除数", e)

print("step5")
